package com.group3.group3.department.repository;
/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2022/05/19/18:17
 * @Description:
 */

/**
 *@ClassName DepartmentDao
 *@Description
 *@Author 王琛
 *@Date 2022/5/19 18:17
 @Version 1.0
 */
import com.group3.group3.department.entity.SearchDepartmentEntity;
import com.group3.group3.mybatis.entity.PtDepartmentEntity;
import com.group3.group3.mybatis.flexigrid.PagingBean;
import com.group3.group3.mybatis.ztree.ZtreeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentDao {
    Integer queryDepartmentListTotal(@Param("search")SearchDepartmentEntity search);

    List<PtDepartmentEntity> queryDepartmentListByPage(@Param("search") SearchDepartmentEntity search, @Param("paging") PagingBean paging);

    List<String> getMenuZtreeListByRoleId(@Param("depUuid")String depUuid);

    List<ZtreeEntity> getMenuZtreeList(String toString);

    void insertMenuRefDepartment(@Param("depUuid")String depUuid, @Param("menuArray")String[] menuArray);

    void deleteMenuByDepartment(@Param("depUuid")String depUuid);

    List<String> getMenuZtreeListByDepartmentId(@Param("depUuid")String depUuid);

    void addDepartmentById(@Param("entity")PtDepartmentEntity entity);
}

